package com.pan.hisystem.service.impl;

import com.pan.hisystem.pojo.PrescriptionDrugs;
import com.pan.hisystem.mapper.PrescriptionDrugsMapper;
import com.pan.hisystem.service.IPrescriptionDrugsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author qingyang
 * @since 2022-03-18
 */
@Service
public class PrescriptionDrugsServiceImpl extends ServiceImpl<PrescriptionDrugsMapper, PrescriptionDrugs> implements IPrescriptionDrugsService {


    @Autowired
    private PrescriptionDrugsMapper prescriptionDrugsMapper;

    /**
     * 取药
     * @param ids
     * @return
     */
    @Override
    public int updateDrugs(Integer[] ids) {
        return prescriptionDrugsMapper.updateDrugs(ids);
    }
}
